#pragma once
#include"RBTree.h"

namespace fhvyxyci
{
	template<class K>
	class set
	{
	public:
		struct SetTOfK
		{
			const K& operator()(const K& k)
			{
				return k;
			}
		};

		typedef typename RBTree<K, K, SetTOfK>::Iterator iterator;
		typedef typename RBTree<K, K, SetTOfK>::ConstIterator const_iterator;

		pair<iterator, bool> insert(const K& k)
		{
			return _rbtree.insert(k);
		}

		const_iterator begin() const
		{
			return _rbtree.Begin();
		}

		const_iterator end() const
		{
			return _rbtree.End();
		}

		iterator begin()
		{
			return _rbtree.Begin();
		}

		iterator end()
		{
			return _rbtree.End();
		}

	private:
		RBTree<K, K, SetTOfK> _rbtree;
	};
}